<div class="node-types" style="margin-bottom:8px;">
  <ul class="nav nav-tabs" aria-labelledby="dropdownMenuButton">

    <% if params[:action] == "show" || params[:action] == "comments"%>
      <li class="nav-item">
        <a class="nav-link <% if @node_type == "note" %> active<% end %>" href="/tag/<%= params[:id] %>">
          <i class="fa fa-file"></i> 
          <span class="d-lg-inline"> 
            <span class="d-none d-md-inline"><%= t('tag.show.research_notes') %></span>
            <span class="d-none d-sm-inline badge badge-primary"><%= params[:counts][:posts] %></span>
          </span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link <% if @node_type == "questions" %> active<% end %>" href="/questions/tag/<%= params[:id] %>">
          <i class="fa fa-question-circle"></i> 
          <span class="d-lg-inline">
            <span class="d-none d-md-inline"><%= t('tag.show.questions') %></span>
            <span class="d-none d-sm-inline badge badge-primary"><%= params[:counts][:questions] %></span>
          </span>
        </a>
      </li>
      <li class="nav-item">
        <a class="nav-link <% if @node_type=="wiki" %> active <% end %>" href="/wiki/tag/<%= params[:id] %>">
          <i class="fa fa-book"></i> 
          <span class="d-lg-inline">
            <span class="tags-tab-wiki d-none d-md-inline"><%= t('tag.show.wiki_pages') %></span>
            <span class="d-none d-sm-inline badge badge-primary"><%= params[:counts][:wiki] %></span>
          </span>
        </a>
      </li>
      <!--
      <li class="nav-item">
        <a class="nav-link <% if @node_type == "maps" %> active <% end %>" href="/maps/tag/<%= params[:id] %>">
          <i class="fa fa-map-marker"></i> 
          <span class="d-lg-inline"><%= t('tag.show.maps') %></span>
        </a>
      </li>
      -->
      <% if !@wildcard %>
        <li class="nav-item">
          <a class="nav-link <% if @node_type == "contributors" %> active <% end %>" href="/contributors/<%= params[:id] %>">
            <i class="fa fa-user"></i> 
            <span class="d-lg-inline">
              <span class="d-none d-lg-inline"><%= raw t('tag.show.people') %></span>
              <span class="d-none d-sm-inline badge badge-primary"><%= @contributor_count %></span>
            </span>
          </a>
        </li>
      <% else %>
        <a class="disabled" class="nav-item<% if @node_type == "contributors" %> active <% end %>" href="#" rel="tooltip" title="Contributors cannot be listed for wildcard tag searches" >
          <i class="fa fa-user"></i> 
          <span class="d-lg-inline d-none d-md-inline"><%= raw t('tag.show.contributors') %></span>
        </a>
      <% end %>

      <li class="nav-item">
        <a class="nav-link <% if @node_type == "comments" %> active <% end %>" href="/tag/comments/<%= params[:id] %>">
          <i class="fa fa-comments"></i> 
          <span class="d-lg-inline">
            <span class="d-none d-md-inline"><%= raw t('tag.show.comments') %></span>
          </span>
        </a>
      </li>

    <% else %>

      <% unless params[:id].match("question:") %>
        <li class="nav-item">
          <a class="nav-link <% if @node_type == "note" %>active<% end %>" href="/tag/<%= params[:id] %>/author/<%= params[:author] %>">
            <i class="fa fa-file"></i> 
            <span class="d-lg-inline"><%= raw t('tag.show.research_notes') %></span>
          </a>
        </li>
      <% end %>

      <li class="nav-item">
        <a class="nav-link<% if @node_type == "questions" %> active<% end %>" href="/questions/tag/<%= params[:id] %>/author/<%= params[:author] %>" >
          <i class="fa fa-question-circle"></i> <span class="d-lg-inline"><%= t('tag.show.questions') %></span>
        </a>
      </li>

      <li class="nav-item">
        <a class="nav-link<% if @node_type == "wiki" %> active<% end %>" href="/wiki/tag/<%= params[:id] %>/author/<%= params[:author] %>" >
          <i class="fa fa-book"></i> <span class="d-lg-inline"><%= raw t('tag.show.wiki_pages') %></span>
        </a>
      </li>

      <li class="nav-item">
        <a class="nav-link<% if @node_type == "contributors" %> active<% end %>" href="#" rel="tooltip" title="Contributors can't be listed for tag searches with Authors" >
          <i class="fa fa-user"></i> <span class="d-lg-inline"><%= raw t('tag.show.contributors') %></span>
        </a>
      </li>

      <li class="nav-item">
        <a class="nav-link <% if @node_type == "comments" %> active <% end %>" href="#" rel="tooltip" title="Comments can't be listed for tag searches with Authors">
          <i class="fa fa-comments"></i> 
          <span class="d-lg-inline">
            <span class="d-none d-md-inline"><%= raw t('tag.show.comments') %></span>
          </span>
        </a>
      </li>
    <% end %>
  </ul>
</div>
